{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class=""><a href="{:url('admin/luntan_article/index')}">文章管理</a></li>
            <li class="layui-this">文章详情</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <!-- <form class="layui-form form-container" action="" method="post"> -->
                    <table class="layui-table">
                        <colgroup>
                            <col width="5%">
                            <col width="5%">
                            <col width="15%">
                            <col width="15%">
                        </colgroup>
                        <thead>
                        <tr>
                            <th>楼层</th>
                            <th>用户名称</th>
                            <th>标题</th>
                            <th>内容</th>
                        </tr> 
                        </thead>
                        <tbody>
                            <tr>
                                <td>楼主</td>
                                <td>{$articlelist.username}</td>
                                <td>{$articlelist.title}</td>
                                <td>{$articlelist.content}</td>
                            </tr>
                            {foreach name="replyinfo" item="vo"}
                                <tr>
                                    <td>{$vo['reply']['louceng']}楼</td>
                                    <td>{$userlist[$vo['reply']['uid']]}</td>
                                    <td></td>
                                    <td>{$vo['reply']['content']}</td>
                                </tr>
                                {foreach name="$vo['after']" item="val"}
                                <tr>
                                    <td style="float:right">跟帖</td>
                                    <td>{$userlist[$val['uid']]}</td>
                                    <td></td>
                                    <td>{$val['content']}</td>
                                </tr>
                                {/foreach}
                            {/foreach}
                        </tbody>
                    <!-- </table> -->
                </form>

            </div>
        </div>
    </div>
</div>
{/block}